package com.weiyuwqj.api.model.vo;

import java.io.Serializable;

/**
 * Created by huzj on 2017/4/14.
 */
public class BalanceInfoVo implements Serializable{

    private String total;

    private String usable;

    private String frozen;

    private String platformId;

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getUsable() {
        return usable;
    }

    public void setUsable(String usable) {
        this.usable = usable;
    }

    public String getFrozen() {
        return frozen;
    }

    public void setFrozen(String frozen) {
        this.frozen = frozen;
    }

    public String getPlatformId() {
        return platformId;
    }

    public void setPlatformId(String platformId) {
        this.platformId = platformId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof BalanceInfoVo)) return false;

        BalanceInfoVo that = (BalanceInfoVo) o;

        if (total != null ? !total.equals(that.total) : that.total != null) return false;
        if (usable != null ? !usable.equals(that.usable) : that.usable != null) return false;
        if (frozen != null ? !frozen.equals(that.frozen) : that.frozen != null) return false;
        return platformId != null ? platformId.equals(that.platformId) : that.platformId == null;

    }

    @Override
    public int hashCode() {
        int result = total != null ? total.hashCode() : 0;
        result = 31 * result + (usable != null ? usable.hashCode() : 0);
        result = 31 * result + (frozen != null ? frozen.hashCode() : 0);
        result = 31 * result + (platformId != null ? platformId.hashCode() : 0);
        return result;
    }
}
